package com.ruoyi.hospital.domain.coupon;

import com.ruoyi.common.core.domain.NewBaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;

/**
 * 领券记录对象 coupon_record
 * 
 * @author wendao
 * @date 2024-10-08
 */
public class CouponRecord extends NewBaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Integer id;

    /** 活动 */
    @Excel(name = "活动")
    private String title;
    private Integer couponActivityId;
    private CouponInfo couponInfo;

    /** 用户 */
    @Excel(name = "用户")
    private String memberName;
    @Excel(name = "手机号")
    private String phone;

    private Integer memberId;

    /** 状态 */
    @Excel(name = "状态")
    private Integer useStatus;

    /** 订单 */
    @Excel(name = "订单")
    private Integer orderId;

    /** 使用时间 */
    private Integer useTime;

    public CouponInfo getCouponInfo() {
        return couponInfo;
    }

    public void setCouponInfo(CouponInfo couponInfo) {
        this.couponInfo = couponInfo;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setCouponActivityId(Integer couponActivityId) 
    {
        this.couponActivityId = couponActivityId;
    }

    public Integer getCouponActivityId() 
    {
        return couponActivityId;
    }
    public void setMemberId(Integer memberId) 
    {
        this.memberId = memberId;
    }

    public Integer getMemberId() 
    {
        return memberId;
    }
    public void setUseStatus(Integer useStatus) 
    {
        this.useStatus = useStatus;
    }

    public Integer getUseStatus() 
    {
        return useStatus;
    }
    public void setOrderId(Integer orderId) 
    {
        this.orderId = orderId;
    }

    public Integer getOrderId() 
    {
        return orderId;
    }
    public void setUseTime(Integer useTime) 
    {
        this.useTime = useTime;
    }

    public Integer getUseTime() 
    {
        return useTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("couponActivityId", getCouponActivityId())
            .append("memberId", getMemberId())
            .append("useStatus", getUseStatus())
            .append("orderId", getOrderId())
            .append("useTime", getUseTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
